﻿using Assessment.BLL;
using Assessment.Model;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Admin_Main : System.Web.UI.Page
{
    Sys_ModuleBLL bll = new Sys_ModuleBLL();

    public List<Sys_Module> list { get; set; }

    public DataTable dt_list { get; set; }

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            BindTreeData();
        }
    }

    private void BindTreeData()
    {
        //list = bll.GetModelList("Valid=1");
        UtilityBLL ubll = new UtilityBLL();
        int rcount;
        dt_list = ubll.GetListByPage("View_Module", "ModuleId,ModuleName,Href,ParentId", "ParentId,OrderNo", "Valid=1", 10000, 1, 0, out rcount);
    }
}